4D Chart v13CT RGB to color |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Chart v13
CT RGB to color
|
CT RGB to color ( red ; green ; blue ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
red | Longint |
![]() |
Red value (0 to 65535) | |||||
green | Longint |
![]() |
Green value (0 to 65535) | |||||
blue | Longint |
![]() |
Blue value (0 to 65535) | |||||
Function result | Longint |
![]() |
Value of the color (internal to 4D Chart) | |||||
CT RGB to color returns a value that represents the red, green, and blue components. This number is used in several 4D Chart commands.
The red, green, and blue parameters are the same as those used in the Macintosh Color Picker.
The following table shows the values for red, green, and blue in three commonly used colors:
Color | Red | Green | Blue |
red | 56683 | 2242 | 1698 |
green | 0 | 32768 | 4528 |
blue | 0 | 0 | 54272 |
This example sets a color variable for the color red:
$color:=CT RGB to color(56683;2242;1698)
Product: 4D Chart
Theme: CT Utilities
Number:
14577
Created: 4D Chart 1
CT Color to index
CT COLOR TO RGB
CT Index to color